/*
 * Written by Anders Fongen
 * Norwegian Defence Research Establishment (FFI)
 * Email: anders@fongen.no
 */

package no.ffi.gismoidm.certstore;
import java.security.cert.X509Certificate;
import javax.security.auth.x500.X500Principal;
/**
 *
 * @author anf
 */
public interface CertificateService {
    X509Certificate retrieveAndValidate(X500Principal dn) throws Exception;
    X509Certificate retrieveAndValidate(String subjectHash,String serialNumber) throws Exception;
    
}
